package myschool.cycleadvanced.student;

import java.util.Scanner;

public class InvertedTriangle {
    /**
     * 倒三角
     */
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入倒三角的行数");
        int number = input.nextInt();
        for (int i = number; i > 0; i--) {
            for (int j = i*2-1; j > 0 ; j--) {
                System.out.print("*");
            }
            System.out.print("\n");
        }
    }
}
